import java.util.ArrayList;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Entreprise extends Utilisateur {

	private String nom;

	@OneToMany //dire quoi que c'est -> TODO
	private ArrayList<EvenementEntreprise> evenementsCrees;
	
	public Entreprise() {
	}

	public Entreprise(String p, Float abs, Float ord, String n) {
		super(p,abs,ord);
		this.nom=p;
		evenementsCrees=new ArrayList<EvenementEntreprise>();
	}
	
	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}


	public ArrayList<EvenementEntreprise> getEvenementsCrees() {
		return evenementsCrees;
	}

	public void setEvenementsCrees(ArrayList<EvenementEntreprise> evenementsCrees) {
		this.evenementsCrees = evenementsCrees;
	}

	public void addEvenement(EvenementEntreprise ev) {
		this.evenementsCrees.add(ev);
	}
	

	
	
}
